
import 'package:flutter/material.dart';
import 'package:reabamshengchan/src/reabam/operation/rb_config.dart';
import 'package:reabamshengchan/src/reabam/operation/rb_enum.dart';
import 'package:reabamshengchan/src/reabam/ui/pagestate_main_webview.dart';
import 'package:xsdk_flutter/xsdk/xsdk_flutter_package.dart';
import 'package:xsdk_flutter_plugin/xsdk_flutter_plugin.dart';

/*
欢迎页
hyl 2022.12.28
 */
class WelcomeStatePage extends XPageWelcomeState{
  WelcomeStatePage({required super.milliseconds});


  @override
  void onStart() {
    XFlutterUtils.setScreenOrientation(false);
    super.onStart();

    XFlutterUtils.setSystemStatusBar(false);
    //保持设备唤醒状态
    XFlutterUtils.keepWakelock();

    //获得权限
    XPermissionUtils.requestAllPermissions();

  }




  @override
  void goNextPage() {
    startPage(MainWebViewStatePage(),isFinish: true);
  }

  @override
  Widget getWelcomeWidget() {
    return XWidgetUtils.getLayoutCenter(XImageUtils.getImageWidgetWithAsset(
        'welcome_app.png',
        width: 122,
        height: 32.5
    ),
    );
  }


}